<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div class="row"><!-- start nav -->
    <div class="span12">
            <div class="navbar">
                    <div class="navbar-inner">
                            <div class="container">
                                    <div class="nav-collapse">
                                            <ul class="nav">
                                                <li><a href="<c:url value="/index.html"/>" class="first">Главная</a></li>
                                                <li><a href="<c:url value="/listings.html"/>">Поиск</a></li>
                                                    <!--<li><a href="<c:url value="/map_properties.html"/>">Аренда</a></li>-->
                                                    <li><a href="<c:url value="/compare.html"/>">Добавить объявление</a></li>							
                                                    <!--<li class="dropdown">
                                                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Другие страницы<b class="caret"></b></a>
                                                            <ul class="dropdown-menu">-->
                                                                    <!--<li><a href="<c:url value="/terms.html"/>">Правила</a></li>-->
                                                                    <li><a href="<c:url value="/contact.html"/>">Контакты</a></li>
                                                                    <!--<li><a href="<c:url value="/about.html"/>">О системе</a></li> -->
                                                            <!--</ul>
                                                    </li>-->

                                            </ul>

                                            <ul class="nav pull-right">
                                            <c:choose>
                                                    <c:when test="${empty user}">
                                                        <li class="dropdown">
                                                                <a class="dropdown-toggle" href="#" data-toggle="dropdown">Регистрация<strong class="caret"></strong></a>
                                                                <div class="dropdown-menu">
                                                                    <%@ include file="../forms/registration.jsp" %>
                                                                </div>
                                                        </li>			

                                                        <li class="dropdown">
                                                                <a class="dropdown-toggle" href="#" data-toggle="dropdown">Войти<strong class="caret"></strong></a>
                                                                <div class="dropdown-menu">
                                                                    <%@ include file="../forms/login.jsp" %>
                                                                </div>
                                                        </li>
                                                    </c:when>
                                                    <c:otherwise>
                                                        <li><a href="<c:url value="/cabinet/"/>">Личный кабинет</a></li> 
                                                    </c:otherwise>
                                            </c:choose>

                                            </ul>
                                    </div><!-- /.nav-collapse -->
                            </div>
                    </div><!-- /navbar-inner -->
            </div><!-- /navbar -->
    </div>
</div><!-- end nav -->